import pages from './autoLoad'

console.log(pages)

export default [
  {
    path: '/',
    redirect: '/auth'
  },
  {
    path: '/auth',
    component: pages.auth,
    redirect: '/home',
    children: [
      {
        path: '/home',
        component: pages.home
      },
      {
        path: '/goods',
        component: pages.goods
      },
      {
        path: '/nominate',
        component: pages.nominate
      },
      {
        path: '/uno',
        component: pages.uno
      },
      {
        path: '/person',
        component: pages.person
      }
    ]
  },
  {
    path: '/success',
    component: pages.success
  },
  {
    path: '/login',
    component: pages.login
  },
  {
    path: '/spell',
    component: pages.spell
  },
  {
    path: '/more',
    component: pages.more,
    redirect: '/tomorrow',
    children: [
      {
        path: '/tomorrow',
        component: pages.tomorrow
      },
      {
        path: '/underway',
        component: pages.underway
      },
      {
        path: '/plays',
        component: pages.plays
      }
    ]
  },
  {
    path: '/detail',
    component: pages.detail
  },
  {
    path: '/site',
    component: pages.site
  },
  {
    path: '/newSite',
    component: pages.newSite
  },
  {
    path: '/search',
    component: pages.search
  },
  {
    path: '/result',
    component: pages.result
  },
  {
    path: '/homes',
    component: pages.homes
  }
]
